package com.central.player.model;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import lombok.Data;

@Data
public class PlayerDetailsDO {
    private String playerId;
    private String nickName;
    private String phone;
    /*基础信息:bsdld.player*/
    /**性别 0:男;1:女*/
    private Boolean sex;

    /**状态:0:正常;1:封号*/
    private Boolean state;

    /*背包:bsdld.playerbag*/
    /**钻石*/
    private Long diamond;
    /**金币*/
    private Long money;

    /*战斗信息及等级:bsdld.fightinfo*/
    /**最后一次战斗时间*/
    private String lastTime;
    /**PVP次数*/
    private String pvpCount;
    /**PVP等级*/
    private String pvpGrade;
    /**PVP赢*/
    private String pvpWin;
    /**PVE等级*/
    private String pveGrade;

    /*五行:bsdld.playerelement*/
    /**五形碎片:{"CT_GREEN":1001,"CT_PURPLE":1001,"CT_YELLOW":1001,"CT_BLUE":1001,"CT_RED":1001}*/
    /**五行点数通用*/
    private Integer dianShu;
    /**五形等级:{"CT_GREEN":0,"CT_PURPLE":0,"CT_YELLOW":0,"CT_BLUE":0,"CT_RED":0}*/
    private String elementsJson;


    /*技能:bsdld.playerskill*/
    /**技能点*/
    private Integer debris;
    /**战斗技能:[10031,10032]*/
    private String fightSkill;
    /**可用技能等级:{"1000":0,"10013":0}*/
    private String skillLevelJson;


    public static void main(String[] args) {
        /*String str = "[]";
        JSONArray jsonArray = new JSONArray();
        jsonArray = JSONArray.parseArray(str);
        System.out.println(jsonArray);*/

        /*String str = "{\"10017\":0,\"1001\":0,\"1002\":0,\"1003\":0,\"1004\":0,\"1005\":0,\"1006\":0}";
        JSONObject jsonObject = new JSONObject();
        jsonObject = JSONObject.parseObject(str);
        System.out.println(jsonObject);*/
    }

    @Override
    public String toString() {
        return "PlayerDetailsDO{" +
                "playerId='" + playerId + '\'' +
                ", nickName='" + nickName + '\'' +
                ", phone='" + phone + '\'' +
                ", sex=" + sex +
                ", state=" + state +
                ", diamond=" + diamond +
                ", money=" + money +
                ", lastTime='" + lastTime + '\'' +
                ", pvpCount='" + pvpCount + '\'' +
                ", pvpGrade='" + pvpGrade + '\'' +
                ", pvpWin='" + pvpWin + '\'' +
                ", pveGrade='" + pveGrade + '\'' +
                ", dianShu=" + dianShu +
                ", elementsJson='" + elementsJson + '\'' +
                ", debris=" + debris +
                ", fightSkill='" + fightSkill + '\'' +
                ", skillLevelJson='" + skillLevelJson + '\'' +
                '}';
    }
}
